package com.wuming.house.service;


import com.wuming.house.core.BusinessException;
import com.wuming.house.model.Secondhouseprice;

import java.util.List;

public interface SecondhousepriceService {

    /**
     * 保存房价信息
     *
     * @param houseprice 房价信息
     * @throws BusinessException
     */
    void saveSecondhouseprice(Secondhouseprice houseprice) throws BusinessException;

    /**
     * 修改房价信息
     *
     * @param houseprice 房价信息
     * @throws BusinessException
     */
    void modifySecondhouseprice(Secondhouseprice houseprice) throws BusinessException;

    /**
     * 根据房价id查询房价信息
     *
     * @param id 房价id
     * @return 房价信息
     * @throws BusinessException
     */
    Secondhouseprice getSecondhousepriceById(Long id) throws BusinessException;

    /**
     * 根据城市名称查询房价信息
     *
     * @param year  当前年份
     * @param month 当前月份
     * @return 房价信息
     * @throws BusinessException
     */
    List<Secondhouseprice> getSecondhousepriceByParams(Long houseId, String houseName, Integer year, Integer month) throws BusinessException;

}
